﻿#region Imports

using System;
using System.Collections.Generic;
using System.Text;
using d3PrtDgn.Data.Domain.Entity;
using d3PrtDgn.Core.BaseData;

#endregion

namespace d3PrtDgn.Data.IDAO
{
	/// <summary>
	/// Phototype data access object interface
	/// </summary>
    public interface IPhototypeDao : IBaseDao
	{
		/// <summary>
		/// Load photo type according to MIME type
		/// Creates photo type if not exists MIME
		/// </summary>
		/// <param name="type">Photo type with specified MIME type</param>
		/// <returns>Loaded or created photo type</returns>
		Phototype FindByMimeOrCreate(Phototype type);
	}
}
